<template>
  <el-dialog
    top="30px"
    width="900px"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <check-report v-bind="$attrs" @success="handleSuccess" @close="beforeClose"></check-report>
  </el-dialog>
</template>

<script>
import CheckReport from '@/credit/views/city/self/after/report/CheckReport'
export default {
  props: {
    visible: Boolean,
  },
  components: {
    CheckReport,
  },
  data() {
    return {}
  },

  created() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handleSuccess() {
      this.$emit('success', true)
    },
  },
}
</script>
<style lang="scss" scoped></style>
